//
//  SDHSportsFileManager.h
//  SDHSportsNews
//
//  Created by MichaelShan on 2021/3/10.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
#define kFollowTeamDataKey        @"follow_team"
#define kFollowNewsDataKey        @"follow_news"
#define kFollowMatchDataKey       @"follow_match"
#define kBrowseTeamDataKey        @"browse_team"
#define kBrowseNewsDataKey        @"browse_news"
#define kBrowseMatchDataKey       @"browse_match"

@interface SDHSportsFileManager : NSObject

+ (instancetype)fileManager;

// 读、写、删除文件
+ (void)saveDict:(NSDictionary *)dictionary toFileName:(NSString *)fileName;
+ (NSDictionary *)readDataFromFileName:(NSString *)fileName;
+ (void)saveArray:(NSArray *)array toFileName:(NSString *)fileName;
+ (NSArray *)readArrayFromFileName:(NSString *)fileName;

+ (void)deleteDataWithFileName:(NSString *)fileName;

@end

NS_ASSUME_NONNULL_END
